<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试封装Ajax方法</title>
 	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.4.min.js"></script>
 	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/icon.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/ainit.css" type="text/css"></link>
 	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.4.min.js"></script>
 	<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.2.2.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.ainit-1.0.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/jquery.ainit-1.1.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/model.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/perlize.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/save.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/initPage.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/butnScript.js"></script> 
 	<script language="javascript">
 	//禁止提交按钮多次提交
				$.fn.datebox.defaults.formatter = function(date){
				        var y = date.getFullYear();
				        var m = date.getMonth()+1;
				        var d = date.getDate();
				        return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d);
				    };
				    $.fn.datebox.defaults.parser = function(s){
				        if (!s) return new Date();
				        var ss = s.split('-');
				        var y = parseInt(ss[0],10);
				        var m = parseInt(ss[1],10);
				        var d = parseInt(ss[2],10);
				        if (!isNaN(y) && !isNaN(m) && !isNaN(d)){
				            return new Date(y,m-1,d);
				        } else {
				            return new Date();
				        }
				    };
			//禁止ajax执行过程中页面的其他操作
			//$(document).ajaxStart(function () {
			  //  showLoading();
			//}).ajaxStop(function () {
			 //   clearTimeout(t);
			//});
			
	</script>
</head>
	
<body>
		<input id='dsId' value='bj_xt'/>
		<input type="button" onclick="tj('after')" value="提交">
	<div id='aa'></div>
</body>
</html>